package JDBC;

import java.io.InputStream;
import java.sql.Blob;

public class Music {
    private Integer id;
    private String name;
    private String singer;
    private InputStream musicIs;
    private InputStream albumIs;

    public Music(String name, String singer, InputStream musicIs, InputStream albumIs) {
        this.name = name;
        this.singer = singer;
        this.musicIs = musicIs;
        this.albumIs = albumIs;
    }

    public Music(Integer id, String name, String singer, InputStream musicIs, InputStream albumIs) {
        this.id = id;
        this.name = name;
        this.singer = singer;
        this.musicIs = musicIs;
        this.albumIs = albumIs;
    }

    public Music() {
    }


    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return singer
     */
    public String getSinger() {
        return singer;
    }

    /**
     * 设置
     * @param singer
     */
    public void setSinger(String singer) {
        this.singer = singer;
    }

    /**
     * 获取
     * @return musicIs
     */
    public InputStream getMusicIs() {
        return musicIs;
    }

    /**
     * 设置
     * @param musicIs
     */
    public void setMusicIs(InputStream musicIs) {
        this.musicIs = musicIs;
    }

    /**
     * 获取
     * @return albumIs
     */
    public InputStream getAlbumIs() {
        return albumIs;
    }

    /**
     * 设置
     * @param albumIs
     */
    public void setAlbumIs(InputStream albumIs) {
        this.albumIs = albumIs;
    }

    public String toString() {
        return "Music{id = " + id + ", name = " + name + ", singer = " + singer + ", musicIs = " + musicIs + ", albumIs = " + albumIs + "}";
    }
}
